import { defHttp } from '@/utils/http/axios';

enum Api {
  GetIndex = '/agent/accountChange/index',
  GetClass = '/agent/accountChange/getClassCode',
}

export function getIndexApi(params: any) {
  return defHttp.post<any>({
    url: Api.GetIndex + `?page=${params.page}&limit=${params.pageSize}`,
    params,
  });
}

export function getClassApi(params: any) {
  return defHttp.post<any>({
    url: Api.GetClass,
    params,
  });
}
